FROM python:3.7

WORKDIR /app
ADD . /app
ENV PYTHONPATH /app

RUN pip3 install --no-cache-dir --upgrade pip -i http://pypi.douban.com/simple/
RUN pip3 install --no-cache-dir -r requirement.txt -i http://pypi.douban.com/simple/

ENTRYPOINT [ "/bin/bash", "/app/entrypoint.sh" ]

